/* 
 */

package com.uhaou.system.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; 
import java.util.*;

import org.apache.commons.lang.StringUtils;

import com.uhaou.common.base.*;
import com.uhaou.common.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.uhaou.system.model.*;
import com.uhaou.system.dao.*;
import com.uhaou.system.service.*;
import com.uhaou.system.vo.query.*;

/**
 * @author  jiangcheng
 * @version 1.0
 * @since 1.0
 */


@Service("sysDictManager")
@Transactional
public class SysDictManagerImpl extends BaseManager<SysDict,java.lang.String> implements ISysDictManager{

	
	private ISysDictDao sysDictDao;
	@Override
	protected EntityDao getEntityDao() {
		// TODO Auto-generated method stub
		return (EntityDao)this.sysDictDao;
	}
	@Transactional
	public void deleteById(String id) {
		// TODO Auto-generated method stub
		sysDictDao.deleteById(id);
	}
	@Transactional
	/** 插入数据 */
	public void save(SysDict entity){
		sysDictDao.save(entity);
	}
	@Transactional
	/** 更新数据 */
	public void update(SysDict entity){
		sysDictDao.update(entity);
	}
	@Transactional
	public void deleteSubByCode(String code) {
		// TODO Auto-generated method stub
		sysDictDao.deleteSubByCode(code);
	}
	@Transactional(readOnly=true)
	public List<SysDict> find(SysDictQuery query) {
		// TODO Auto-generated method stub
		return sysDictDao.find(query);
	}
	
	@Transactional(readOnly=true)
	public List<SysDict> findExpValueListByCode(String dictCode) {
		// TODO Auto-generated method stub
		return sysDictDao.findExpValueListByCode(dictCode);
	}
	@Transactional(readOnly=true)
	public List<SysDict> getDictNameValue(String supCode) {
		// TODO Auto-generated method stub
		return sysDictDao.getDictNameValue(supCode);
	}
	@Transactional(readOnly=true)
	public String getMaxCode(String supCode) {
		// TODO Auto-generated method stub
		return sysDictDao.getMaxCode(supCode);
	}
	public void setSysDictDao(ISysDictDao sysDictDao) {
		this.sysDictDao = sysDictDao;
	}

 
}
